import importlib


def myload(modulename):
    # loader = importlib.util.find_spec(modulename)
    loader = importlib.find_loader(modulename)
    loader.load_module()  # does a reload actually!
    m = importlib.__import__(modulename, globals(), locals())
    for v in dir(m):
        exec("global " + v + "; " + v + "= m." + v)


def myloadmodules(modulenames):
    for name in modulenames:
        myload(name)


def L():
    myloadmodules(["chromatic_texture_generator"])


# "R"eload or "L"oad? Choose whichever is nicer to type.
R = L

L()
